﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;
using System.Data;

namespace CCF20Model.ModelBase
{
    public static class EFExtension
    {
        public static IEnumerable<ObjectStateEntry> GetObjectStateEntries(this ObjectStateManager osm)
        {
            return osm.GetObjectStateEntries(EntityState.Added | EntityState.Deleted | EntityState.Modified | EntityState.Unchanged);

        }
    }
}
